﻿<?xml version="1.0" encoding="UTF-8" ?>

<%@ Page Language="C#" EnableViewState="false" AutoEventWireup="true" CodeBehind="Sitemap.aspx.cs"
    Inherits="VS.Web.Sitemap" %>

<%@ Register TagPrefix="asp" Namespace="System.Web.UI.WebControls" Assembly="System.Web" %>

<asp:sitemapdatasource ID="SitemapDataSource" runat="server" 
    ShowStartingNode="False" 
    />

<asp:repeater runat="server" datasourceid="SitemapDataSource" id="SitemapRepeater" EnableViewState="False" >
    <HeaderTemplate>
        <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    </HeaderTemplate>
    <ItemTemplate>
        <url> 
        <loc><%= Request.Url.AbsoluteUri.ToLower().Replace("sitemap.aspx", string.Empty) + "main/main/article" %><%# Eval("Url") %></loc>                
        </url>
    </ItemTemplate>
    <FooterTemplate>
        </urlset>
    </FooterTemplate>
</asp:repeater>
